Skip to content

feat: add split_comma_separated helper for INI-loaded config - #14

Merged
thomas-samoht merged 2 commits into
mainfrom
feat/ini-comma-separated-helper
Sep 8, 2026
Merged

thomas-samoht merged 2 commits into
mainfrom
feat/ini-comma-separated-helper

Conversation

@thomas-samoht

@thomas-samoht thomas-samoht commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Apps that load ConfigLogging (or their own config models) from INI-style
files need list-typed settings to arrive already split, since pydantic won't
turn a plain string into a list on its own. Several apps started hand-rolling
this identically for console_streams after the v0.3.0 bump.

Adds gfmodules.logging.ini.split_comma_separated(), a small opt-in helper
that builds a pydantic mode="before" validator for exactly this. Also updated the version for a new release.

@thomas-samoht
thomas-samoht requested a review from a team as a code owner September 8, 2026 08:17
@thomas-samoht
thomas-samoht marked this pull request as draft September 8, 2026 08:18
@thomas-samoht
thomas-samoht marked this pull request as ready for review September 8, 2026 08:24
@thomas-samoht
thomas-samoht merged commit a5d337d into main Sep 8, 2026
14 checks passed
@thomas-samoht
thomas-samoht deleted the feat/ini-comma-separated-helper branch September 8, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants